# frozen_string_literal: true

module Sortable
  extend ActiveSupport::Concern
  included do
    scope :asc_by, ->(field) { order field }
    scope :desc_by, ->(field) { order field => :desc }
  end
end
